package com.tyk.bookstore.back.storage.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 仓库异常枚举
 */
public enum WarehouseResultEnum implements ResultEnum {

    WAREHOUSE_NOT_FOUND(3_06_01_01, "仓库不存在"),
    WAREHOUSE_ALREADY_EXISTS(3_06_01_02, "该区域已存在同名仓库"),
    WAREHOUSE_STILL_HAS_STOCK(3_06_01_03, "该仓库下仍存在库存数量不为零的商品");

    private final Integer code;
    private final String msg;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    WarehouseResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
